import type {
  getMusicItemRes,
  getMusicListItemParams,
  getMusicListParams,
  getMusicUrlApiParams,
  MusicListType,
} from "@/types/list";
import request from "@/utils/request";
export const getMusicListInfo = (params: getMusicListParams) => {
  return request<MusicListType>({
    method: "get",
    url: "/playlist/detail",
    params,
  });
};
export const getMusicListItem = (params: getMusicListItemParams) => {
  return request<getMusicItemRes>({
    method: "get",
    url: "/playlist/track/all",
    params,
  });
};
export const getMusicUrlApi = (params: getMusicUrlApiParams) => {
  return request({
    method: "get",
    url: "/song/url/v1",
    params,
  });
};
